<?php 
	$model=Users::model()->findByPk($id);
	echo $model->username;
?>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'users-form',
	'enableAjaxValidation'=>false,
)); ?>


<?php if(Yii::app()->user->hasFlash('error')):?>
    <div style="color: red;" class="info">
        <?php echo '<b>'.Yii::app()->user->getFlash('error').'</b>'; ?>
    </div>
<?php endif; ?>
<?php
Yii::app()->clientScript->registerScript(
   'myHideEffect',
   '$(".info").animate({opacity: 1.0}, 3000).fadeOut("slow");',
   CClientScript::POS_READY
);
?>

<?php if(Yii::app()->user->hasFlash('error_verify')):?>
    <div style="color: red;" class="info">
        <?php echo '<b>'.Yii::app()->user->getFlash('error').'</b>'; ?>
    </div>
<?php endif; ?>
<?php
Yii::app()->clientScript->registerScript(
   'myHideEffect',
   '$(".info").animate({opacity: 1.0}, 3000).fadeOut("slow");',
   CClientScript::POS_READY
);
?>

<?php echo CHtml::beginForm(); ?>
	<?php //echo CHtml::errorSummary($model); ?>
	
	<div class="row">
	<?php echo $form->labelEx($model,'password'); ?>
	<?php echo $form->passwordField($model,'password',array('value'=>'')); ?>
	<?php echo $form->error($model,'password'); ?>
	</div>
	
	<div class="row">
	<b>verifyPassword<font color='red'>*</font></b><br />
	<?php echo Chtml::passwordField('verifyPassword'); ?>
	<?php echo $form->error($model,'verifyPassword'); ?>
	</div>
	
	
	<div class="row submit">
	<?php echo CHtml::submitButton('Save'); ?>
	</div>
<?php echo CHtml::endForm(); ?>
<?php $this->endWidget(); ?>
</div><!-- form -->
